-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Added doctests to bucket sort #2079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added doctests to bucket sort #2079
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the tests!
sorts/bucket_sort.py
Outdated
number of buckets. | ||
|
||
Time Complexity of Solution: | ||
Worst case scenario occurs when all the elements are placed in a single bucket. The overall performance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wrap lines to 88 characters max.
Travis tests have failedHey @mateuszz0000, TravisBuddy Request Identifier: 75775280-af9a-11ea-aad4-a340821c2822 |
What is it |
Is it a problem that the algorithm uses the builtin |
@cclauss should we merge it? |
sorts/bucket_sort.py
Outdated
@@ -1,5 +1,3 @@ | |||
#!/usr/bin/env python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the shebang line? https://en.wikipedia.org/wiki/Shebang_(Unix)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work here!
* Added doctests to bucket sort * Missing typehint * Wrap long lines * updating DIRECTORY.md * Update bucket_sort.py * updating DIRECTORY.md * Update bucket_sort.py Co-authored-by: Christian Clauss <[email protected]> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Describe your change:
Added missing doctests.
Checklist:
Fixes: #{$ISSUE_NO}
.